package com.example.demo.mapper;

import com.example.demo.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MarketMapper {
    List<MarketTypeInfo> findMarketTypeInfo();

    List<MarketAreaInfo> findMarketAreaInfo();

    List<Market> findMarket();

    List<MarketPointRank> findMarketPointRank();

    List<MarketPopularityRank> findMarketPopularityRank();

    Market findMarketByName(String name);

    void insertMarket(Market market);

    void addMarketAreaInfo(String area);

    void addMarketTypeInfo(String type);

    void insertMarketPointRank(Market market);

    void insertMarketPopularity(Market market);

    Market findMarketById(int id);

    void reduceMarketTypeInfo(String type);

    void reduceMarketAreaInfo(String area);

    void updateMarket(Market market);

    MarketPointRank findMarketPointRankByName(String name);

    MarketPopularityRank findMarketPopularityRankByName(String name);

    void updateMarketPointRank(Market market);

    void updateMarketPopularity(Market market);

    void deleteMarketById(int id);

    void deleteMarketPointRankByName(String name);

    void deleteMarketPopularityRankByName(String name);
}
